package com.gpframework.module.module.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.module.domain.PlatformSales;
import com.gpframework.module.module.domain.vo.PlatformSalesVo;
import com.gpframework.module.module.mapper.PlatformSalesMapper;
import com.gpframework.module.module.service.IPlatformSalesService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName PlatformSales
 * @Author gpframework
 * @Date 2022-05-09
 * @Version 1.0.0
 * @Description 平台销售员Service业务层处理
 */
@Service
public class PlatformSalesServiceImpl extends ServiceImpl<PlatformSalesMapper, PlatformSales> implements IPlatformSalesService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2022-05-09
     * @Param [lqw]
     * @Return List<PlatformSalesVo>
     */
    @Override
    public List<PlatformSalesVo> listVo(QueryWrapper<PlatformSales> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2022-05-09
     * @Param [id]
     * @Return PlatformSalesVo
     */
    @Override
    public PlatformSalesVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }
}
